﻿using System;
using System.Text;
using Petra.Gis.Geometry.Support;

namespace testGeometryServices
{
  class testCoordinateDMSFormat
  {



    public static void testMe()
    {
      //strF = "40°44′55″N, 73 59 11W";
      Coordinate c = Coordinate.Parse("40°44′55″N, 73 59 11W");
      string strOut = c.ToString("deg->ddd:mm:ss|NE");

      c = Coordinate.Parse("48°46′50″N, 14°0′49E");
      c = Coordinate.Parse("48°46′50″N, 14°10′49");
      c = Coordinate.Parse("48°46′50″, 14°10′49");
      c = Coordinate.Parse("48°46′50″, 14°10′49E");

      c = Coordinate.Parse("48°46′50.20133″N, 14°0′49.63044E"); //48°46′50.20133″N, 14°0′49.63044

      strOut = c.ToString("deg->ddd:mm:ss|NE");

      c = Coordinate.Parse(strOut);
      
    }
  }
}
